package com.worker.Strategy;

/**
 * 策略工具类
 * @author worker
 *
 */
public class StrategyTool {
	//选择策略
	private IStrategy straegy; 
	public StrategyTool(IStrategy strategy){   
		this.straegy = strategy;  
		}   
	//策略统一的执行方法
	public String  operate(){   
		return this.straegy.operate(); 
	}
}
